import request from '@/server'

// 获得产品列表
export const getProductListApi = () => {
  return request.get({
    url: '/product/getProductList',
    isLoading: true
  })
}

// 获得产品详情
export const getProductDetailApi = (id: number | string) => {
  return request.get({
    url: '/product/getProductDetail',
    params: {
      id
    }
  })
}
